<?php

namespace App\Miya\Providers;

use App\Miya\UIData\AreaData;
use App\Miya\UIData\BannerData;
use App\Miya\UIData\BlogrollData;
use App\Miya\UIData\ClassifyData;
use App\Miya\UIData\DebrisData;
use App\Miya\UIData\InfoData;
use App\Miya\UIData\KeywordData;
use App\Miya\UIData\ModuleData;
use App\Miya\UIData\SearchRecordData;
use App\Miya\UIData\SectionData;
use Illuminate\Contracts\Support\DeferrableProvider;
use Illuminate\Support\ServiceProvider;

class UIData extends ServiceProvider implements DeferrableProvider
{
    public $singletons = [
        'area' => AreaData::class,
        'keyword' => KeywordData::class,
        'banner' => BannerData::class,
        'section' => SectionData::class,
        'debris' => DebrisData::class,
        'blogroll' => BlogrollData::class,
        'module' => ModuleData::class,
        'classify' => ClassifyData::class,
        'info' => InfoData::class,
        'search_record' => SearchRecordData::class
    ];

    /**
     * Register services.
     *
     * @return void
     */
    public function register()
    {
        //
    }

    /**
     * Bootstrap services.
     *
     * @return void
     */
    public function boot()
    {
        //
    }

    public function provides()
    {
        return [
            'area', 'keyword', 'banner', 'section', 'search_record',
            'debris', 'blogroll', 'module', 'classify', 'info'
        ];
    }
}
